/*
 * scullwuid.h head file for scullwuid.c 
 */

#ifndef _SCULLWUID_H_
#define _SCULLWUID_H_

#undef WXYDEBUG
#ifdef WXY_DEBUG
  #ifdef __KERNEL__
    #define WXYDEBUG(fmt, args...) printk( KERN_DEBUG "scullwuid: " fmt, ## args)
  #else
    #define WXYDEBUG(fmt, args...) fprintf(stderr, fmt, ## args)
  #endif
#else
  #define WXYDEBUG(fmt, args...)
#endif

struct scull_qset {
	void **data;
	struct scull_qset *next;
};

struct scullwuid_dev {
	struct scull_qset *data;  /* Pointer to first quantum set */
	int quantum;              /* the current quantum size */
	int qset;                 /* the current array size */
	unsigned long size;       /* amount of data stored here */
	unsigned int access_key;  /* used by sculluid and scullpriv */
	struct semaphore sem;     /* mutual exclusion semaphore     */
	struct cdev cdev;	  /* Char device structure		*/
};

#endif








